/*    */ package btsm.servlet;
/*    */ 
/*    */ import btsm.bean.sysPro;
/*    */ import java.io.IOException;
/*    */ import java.io.PrintStream;
/*    */ import javax.servlet.RequestDispatcher;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServlet;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ 
/*    */ public class ser_syspara extends HttpServlet
/*    */ {
/*    */   public void init()
/*    */     throws ServletException
/*    */   {
/*    */   }
/*    */ 
/*    */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/*    */     throws ServletException, IOException
/*    */   {
/* 21 */     sysPro smPro = new sysPro();
/*    */ 
/* 23 */     String seraction = request.getParameter("seraction");
/*    */ 
/* 27 */     if (seraction.equalsIgnoreCase("sermodSysP"))
/*    */     {
/* 29 */       RequestDispatcher btsm = request.getRequestDispatcher("sysParamCfg.jsp");
/* 30 */       btsm.forward(request, response);
/* 31 */     } else if (seraction.equalsIgnoreCase("sermodCenP"))
/*    */     {
/* 33 */       RequestDispatcher btsm = request.getRequestDispatcher("sysCenterCfg.jsp");
/* 34 */       btsm.forward(request, response);
/* 35 */     } else if (seraction.equalsIgnoreCase("serpreset")) {
/* 36 */       System.out.println("ser_preset mod lg");
/* 37 */       smPro.resetLoginbk();
/* 38 */       request.setAttribute("filesnames", "ser_syspara?seraction=sermodSysP");
/*    */ 
/* 40 */       String msg = "参数保存成功";
/* 41 */       request.setAttribute("msg", msg);
/* 42 */       RequestDispatcher btsm = request.getRequestDispatcher("common.jsp");
/* 43 */       btsm.forward(request, response);
/* 44 */     } else if (seraction.equalsIgnoreCase("serbtslireset")) {
/* 45 */       System.out.println("serbtslireset mod lg");
/* 46 */       smPro.resetBtsLIP();
/* 47 */       request.setAttribute("filesnames", "sysBtsLICfg.jsp");
/*    */ 
/* 49 */       String msg = "参数保存成功";
/* 50 */       request.setAttribute("msg", msg);
/* 51 */       RequestDispatcher btsm = request.getRequestDispatcher("sysBtsLICfg.jsp");
/* 52 */       btsm.forward(request, response);
/* 53 */     } else if (seraction.equals("sermodSys"))
/*    */     {
/* 57 */       System.out.println("ser_syspara mod lg");
/*    */ 
/* 59 */       String[] fieldxg = request.getParameterValues("T1");
/* 60 */       smPro.setOrgName(fieldxg[0]);
/* 61 */       smPro.setUploadpath(fieldxg[1]);
/* 62 */       smPro.setMapKey(fieldxg[2]);
/* 63 */       smPro.setRegCode(fieldxg[3]);
/* 64 */       smPro.prosSysStore();
/* 65 */       request.setAttribute("filesnames", "ser_syspara?seraction=sermodSysP");
/*    */ 
/* 67 */       String msg = "";
/* 68 */       msg = msg + "参数保存成功";
/* 69 */       request.setAttribute("msg", msg);
/*    */ 
/* 71 */       RequestDispatcher btsm = request.getRequestDispatcher("common.jsp");
/* 72 */       btsm.forward(request, response);
/* 73 */     } else if (seraction.equals("sermodCen"))
/*    */     {
/* 77 */       System.out.println("ser_syspara mod lg");
/*    */ 
/* 79 */       String[] fieldxg = request.getParameterValues("T1");
/* 80 */       smPro.setPCenter(fieldxg[0]);
/* 81 */       smPro.setPFilter(fieldxg[1]);
/* 82 */       smPro.setCLng(fieldxg[2]);
/* 83 */       smPro.setCLat(fieldxg[3]);
/* 84 */       smPro.prosCenStore();
/* 85 */       request.setAttribute("filesnames", "ser_syspara?seraction=sermodCenP");
/*    */ 
/* 87 */       String msg = "";
/* 88 */       msg = msg + "参数保存成功";
/* 89 */       request.setAttribute("msg", msg);
/*    */ 
/* 91 */       RequestDispatcher btsm = request.getRequestDispatcher("common.jsp");
/* 92 */       btsm.forward(request, response);
/*    */     }
/*    */   }
/*    */ 
/*    */   public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
/*    */   {
/* 98 */     doGet(request, response);
/*    */   }
/*    */ 
/*    */   public void destroy()
/*    */   {
/*    */   }
/*    */ }

/* Location:           E:\java\apache-tomcat-6.0.36\webapps\btsm\WEB-INF\classes\
 * Qualified Name:     btsm.servlet.ser_syspara
 * JD-Core Version:    0.6.2
 */